const warned: Record<string, Array<String>> = {};

/**
 * 错误提示
 * @param component
 * @param message
 */
export function devWarning(component: string, message: string): void {
  if(!warned[component]) {
    warned[component] = [];
  }

  if (process.env.NODE_ENV !== 'production') {
    warned[component].push(message);
    console.warn(`Warning: [apusic-ui-plus]-${component}: ${message}`);
  }
}
